package org.locker.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.locker.common.mybatis.core.page.PageQuery;
import org.locker.common.mybatis.core.page.TableDataInfo;
import org.locker.device.dto.ManagerClientQueryDto;
import org.locker.domain.DeviceOperateLog;
import org.locker.domain.bo.DeviceOperateLogBo;
import org.locker.domain.vo.DeviceOperateLogVo;

import java.util.Collection;
import java.util.List;

/**
 * 用户操作记录Service接口
 *
 * @author winnie
 * @date 2023-10-11
 */
public interface IDeviceOperateLogService extends IService<DeviceOperateLog>{

    /**
     * 查询用户操作记录
     */
    DeviceOperateLogVo queryById(Long userOperateId);

    /**
     * 查询用户操作记录列表
     */
    TableDataInfo<DeviceOperateLogVo> queryPageList(DeviceOperateLogBo bo, PageQuery pageQuery);

    /**
     * 查询用户操作记录列表
     */
    List<DeviceOperateLogVo> queryList(DeviceOperateLogBo bo);

    /**
     * 新增用户操作记录
     */
    Boolean insertByBo(DeviceOperateLogBo bo);

    /**
     * 修改用户操作记录
     */
    Boolean updateByBo(DeviceOperateLogBo bo);

    /**
     * 校验并批量删除用户操作记录信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    Page<DeviceOperateLogVo> deviceOperLog(ManagerClientQueryDto queryDto, PageQuery pageQuery);

}
